<?php  
function downfile() {  
    $filename=realpath("kfd.zip"); 
    //文件名  
    $date=date("Ymd-H:i:m");  
    Header( "Content-type:  application/octet-stream ");   
    Header( "Accept-Ranges:  bytes ");  
    Header( "Accept-Length: " .filesize($filename));  
    header( "Content-Disposition:  attachment;  filename= kfd.zip");   
    echo file_get_contents($filename);  
    readfile($filename);  
} 
downfile(); 
?> 
